package client.redis;

/**
 * TreeView中的节点对象
 * @author self
 *
 */
public class RedisTreeNode {
	
	/*
	 * 节点显示名称
	 */
	private String text;
	
	/**
	 * 是否已完成加载（子节点或节点信息）
	 */
	private boolean loaded = false; 
	
	/*
	 * 是否是叶子节点
	 */
	private boolean leaf;
	
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public boolean isLoaded() {
		return loaded;
	}

	public void setLoaded(boolean loaded) {
		this.loaded = loaded;
	}
	
	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	
	@Override
	public String toString() {
		return this.text;
	}
}
